package com.qn.visitor.service;

import com.qn.common.base.BaseServiceImpl;
import com.qn.visitor.entity.UserAgentRecord;
import com.qn.visitor.mapper.UserAgentRecordMapper;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
/**
 * qingniu-cloud user source analysis
 *
 * @Author: TXG
 * @Date: 2024/6/11
 * @Version V0.0.2
 */
@DubboService(version = "1.0.0")
public class UserAgentRecordServiceImpl
        extends BaseServiceImpl< UserAgentRecord>
        implements UserAgentRecordService {
    @Autowired
    UserAgentRecordMapper baseMapper;
    @Override
    public void add(UserAgentRecord record) {
        baseMapper.insert(record);
    }

    @Override
    public String getHash(String hash) {
        return baseMapper.getHash(hash);
    }
}
